<?php
//tool
define ('ROOT_PATH', dirname(__FILE__).'/');

$dir = ROOT_PATH.'runtime/';
if ($handle = opendir ( $dir )) {

	while ( false !== ($fileName = readdir ( $handle )) ) {
		if ($fileName != "." && $fileName != "..") {
			if(is_dir($dir.$fileName)){
				@touch($dir.$fileName.'/index.html'); @chmod($dir.$fileName.'/index.html', 0777);
			}
		}
	}
	
}
